import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [

  // 运维 - 用户
  { path: 'manage_user_mis', loadChildren: 'src/app/module/manage/users/user/user.component.module#ManageUserModule' },
  { path: 'manage_userinfo_mis', loadChildren: 'src/app/module/manage/users/user/user.info.module#UserInfoModule' },
  { path: 'manage_role_mis', loadChildren: 'src/app/module/manage/users/role/role.module#UserRoleModule' },
  { path: 'manage_entrust_mis', loadChildren: 'src/app/module/manage/users/entrust/entrust.module#EntrustModule' },
  // 运维 - 机构
  {
    path: 'manage_orgadmin_mis',
    loadChildren: 'src/app/module/manage/org/administrative/org.administrative.module#OrgAdministrativeModule'
  },
  { path: 'manage_department_mis', loadChildren: 'src/app/module/manage/org/department/org.department.module#OrgDepartmentModule' },
  {
    path: 'manage_operatingpost_mis',
    loadChildren: 'src/app/module/manage/org/operating/org.operating.post.module#OrgOperatingPostModule'
  },
  // 数据 - 安保人员，安保设备
  { path: 'person_data_mis', loadChildren: 'src/app/module/data/person/security.person.module#SecurityPersonModule' },
  { path: 'data_personinfo_mis', loadChildren: 'src/app/module/data/person/security.person.info.bpm.module#SecurityPersonInfoModule' },
  { path: 'equipment_data_mis', loadChildren: 'src/app/module/data/equipment/security.equipment.module#SecurityEquipmentModule' },
  {
    path: 'data_equipmentinfo_mis',
    loadChildren: 'src/app/module/data/equipment/security.equipment.info.bpm.module#SecurityEquipmentInfoModule'
  },
  // 临时数据-行政、地面、公安、空中
  {
    path: 'work_temporaryadministration_mis',
    loadChildren: 'src/app/module/data/temporary/administration/administration.module#AdministrationModule'
  },
  { path: 'work_temporaryfloor_mis', loadChildren: 'src/app/module/data/temporary/floor/floor.module#FloorModule' },
  { path: 'work_temporarypolice_mis', loadChildren: 'src/app/module/data/temporary/police/police.module#PoliceModule' },
  { path: 'work_temporaryair_mis', loadChildren: 'src/app/module/data/temporary/air/air.module#AirModule'},
  { path: 'work_temporaryshow_mis', loadChildren: 'src/app/module/data/temporary/show/show.module#ShowModule'},
  { path: 'work_temporaryshowdate_mis', loadChildren: 'src/app/module/data/temporary/show/date/show.module#ShowModule'},
  { path: 'data_temporary_show_info_mis', loadChildren: 'src/app/module/data/temporary/show/infor/show.info.module#ShowInfoModule'},

  // 周期数据
  {
    path: 'work_cyclepassenger_mis',
    loadChildren: 'src/app/module/data/cycle/passenger/passenger.check.module#PassengerCheckModule'
  },
  {
    path: 'data_cycle_passengerinfo_mis',
    loadChildren: 'src/app/module/data/cycle/passenger/passenger.check.info.module#PassengerCheckInfoModule'
  },
  { path: 'work_cycletransport_mis', loadChildren: 'src/app/module/data/cycle/transport/transport.check.module#TransportCheckModule' },
  { path: 'data_cycle_transportinfo_mis',
    loadChildren: 'src/app/module/data/cycle/transport/transport.check.info.module#TransportCheckInfoModule' },
  { path: 'work_cyclepolice_mis', loadChildren: 'src/app/module/data/cycle/police/police.security.module#PoliceSecurityModule' },
  { path: 'data_cycle_policeinfo_mis',
    loadChildren: 'src/app/module/data/cycle/police/police.security.info.module#PoliceSecurityInfoModule' },
  { path: 'work_cycleairport_mis', loadChildren: 'src/app/module/data/cycle/airport/airport.security.module#AirportSecurityModule'},
  { path: 'data_cycle_airportinfo_mis',
    loadChildren: 'src/app/module/data/cycle/airport/airport.security.info.module#AirportSecurityInfoModule'},
  { path: 'work_cyclecompany_mis', loadChildren: 'src/app/module/data/cycle/company/company.security.module#CompanySecurityModule'},
  { path: 'data_cycle_companyinfo_mis',
    loadChildren: 'src/app/module/data/cycle/company/company.security.info.module#CompanySecurityInfoModule'},
  { path: 'work_cyclesupervision_mis',
    loadChildren: 'src/app/module/data/cycle/supervision/supervision.security.module#SupervisionSecurityModule'
  },
  { path: 'data_cycle_supervisioninfo_mis',
  loadChildren: 'src/app/module/data/cycle/supervision/supervision.security.info.module#SupervisionSecurityInfoModule'
  },
  { path: 'work_cycleshow_mis', loadChildren: 'src/app/module/data/cycle/show/show.module#ShowModule'},
  { path: 'data_cycle_show_info_mis', loadChildren: 'src/app/module/data/cycle/show/infor/show.info.module#ShowInfoModule'},
  { path: 'work_cycleshowdate_mis', loadChildren: 'src/app/module/data/cycle/show/date/show.module#ShowModule'},
  { path: 'manage_position_mis', loadChildren: 'src/app/module/manage/org/position/org.position.module#OrgPositionModule' },
  { path: 'manage_workinggroup_mis', loadChildren: 'src/app/module/manage/org/working/org.working.group.module#OrgWorkingGroupModule' },
  // 运维 - 通用设置
  { path: 'manage_workday_mis', loadChildren: 'src/app/module/manage/config/workday.module#WorkdayModule' },
  { path: 'manage_worktime_mis', loadChildren: 'src/app/module/manage/config/worktime.module#WorktimeModule' },
  // 运维 - APP运维
  { path: 'manage_appversion_mis', loadChildren: 'src/app/module/manage/app/version.module#VersionModule' },
  { path: 'manage_appbook_mis', loadChildren: 'src/app/module/manage/app/appbook.module#AppbookModule' },
  { path: 'manage_appinfo_mis', loadChildren: 'src/app/module/manage/app/appinfo.module#AppInfoModule' },
  // 运维 - 安全审计
  { path: 'manage_logs_mis', loadChildren: 'src/app/module/manage/security/logs/sso.logs.module#SsoLogsModule' },
  { path: 'manage_lineuser_mis', loadChildren: 'src/app/module/manage/security/line/user.component.module#LineUserModule' },
  // 运维 - 数据规范
  {
    path: 'manage_dictionarydir_mis',
    loadChildren: 'src/app/module/form/data/dictionary/data.directory.module#DataDictionaryDirectoryModule'
  },
  { path: 'manage_dictionary_mis', loadChildren: 'src/app/module/form/data/dictionary/data.dictionary.module#DataDictionaryModule' },
  // 运维 - 流程配置
  { path: 'manage_bpmgroup_mis', loadChildren: 'src/app/module/bpm/manage/group/group.module#BpmBroupModule' },
  { path: 'manage_bpmdefinfo_mis', loadChildren: 'src/app/module/bpm/manage/define/bpm.define.info.module#BpmDefineInfoModule' },
  { path: 'manage_bpmdefine_mis', loadChildren: 'src/app/module/bpm/manage/define/bpm.define.module#BpmDefineModule' },

  // SAAS
  { path: 'manage_regservice_mis', loadChildren: 'src/app/module/saas/reg/service/reg.service.module#RegServiceModule' },
  { path: 'manage_regmenu_mis', loadChildren: 'src/app/module/saas/reg/menu/reg.menu.module#RegMenuModule' },
  { path: 'manage_regdata_mis', loadChildren: 'src/app/module/saas/reg/data/reg.data.module#RegDataModule' },
  { path: 'manage_regmaplayer_mis', loadChildren: 'src/app/module/saas/reg/maplayer/reg.maplayer.module#RegMapLayerModule' },
  { path: 'manage_regmapextent_mis', loadChildren: 'src/app/module/saas/reg/mapextent/reg.mapextent.module#RegMapExtentModule' },
  { path: 'manage_reginterface_mis', loadChildren: 'src/app/module/saas/reg/interface/reg.interface.module#RegInterfaceModule' },
  { path: 'saas_order_mis', loadChildren: 'src/app/module/saas/order/tenant.order.module#TenantOrderModule' },
  { path: 'saas_tenant_mis', loadChildren: 'src/app/module/saas/user/tenant.user.module#TenantUserModule' },
  { path: 'saas_token_mis', loadChildren: 'src/app/module/saas/token/tenant.token.module#TenantTokenModule' },

  // 流程
  { path: 'bpm_bpmdefinfo_mis', loadChildren: 'src/app/module/bpm/manage/define/bpm.define.info.module#BpmDefineInfoModule' },
  { path: 'bpm_bpmdefine_mis', loadChildren: 'src/app/module/bpm/manage/define/bpm.define.module#BpmDefineModule' },
  { path: 'bpm_bpmgroup_mis', loadChildren: 'src/app/module/bpm/manage/group/group.module#BpmBroupModule' },
  { path: 'bpm_simlpe_mis', loadChildren: 'src/app/module/bpm/demo/simple/bpm.simple.module#BpmSimpleModule' },
  { path: 'bpm_simlpeform_mis', loadChildren: 'src/app/module/bpm/demo/simple/bpm.simple.form.module#BpmSimpleFormModule' },
  { path: 'bpm_free_mis', loadChildren: 'src/app/module/bpm/demo/free/bpm.free.module#BpmFreeModule' },
  { path: 'bpm_freeform_mis', loadChildren: 'src/app/module/bpm/demo/free/bpm.free.form.module#BpmFreeFormModule' },

  // 表单 - 代码构建
  { path: 'form_javabuild_mis', loadChildren: 'src/app/module/form/generate/java/build.java.module#BuildJavaModule' },
  { path: 'form_webbuild_mis', loadChildren: 'src/app/module/form/generate/web/build.web.module#BuildWebModule' },
  { path: 'form_flutterbuild_mis', loadChildren: 'src/app/module/form/generate/flutter/build.flutter.module#BuildFlutterModule' },
  { path: 'form_androidbuild_mis', loadChildren: 'src/app/module/form/generate/android/build.android.module#BuildAndroidModule' },
  // 表单 - 数据推送
  { path: 'form_synconfig_mis', loadChildren: 'src/app/module/form/syn/data.syn.config.module#DataSynConfigModule' },
  { path: 'form_syn_mis', loadChildren: 'src/app/module/form/syn/data.syn.module#DataSynModule' },
  // 表单 - 信息发送
  { path: 'form_notice_mis', loadChildren: 'src/app/module/form/notice/notice.info.module#NoticeInfoModule' },
  // 表单 - 数据规范
  { path: 'form_dictionary_mis', loadChildren: 'src/app/module/form/data/dictionary/data.dictionary.module#DataDictionaryModule' },
  {
    path: 'form_dictionarydir_mis',
    loadChildren: 'src/app/module/form/data/dictionary/data.directory.module#DataDictionaryDirectoryModule'
  },
  { path: 'form_metadata_mis', loadChildren: 'src/app/module/form/data/metadata/data.metadata.module#DataMetadataModule' },
  { path: 'form_metadatadir_mis', loadChildren: 'src/app/module/form/data/metadata/data.directory.module#DataMetadataDirectoryModule' },
  { path: 'form_datadefin_mis', loadChildren: 'src/app/module/form/data/definition/data.definition.module#DataDefinitionModule' },
  // 表单 - 数据检查
  { path: 'form_checktype_mis', loadChildren: 'src/app/module/form/check/type/check.type.module#CheckTypeModule' },
  { path: 'form_checkconfig_mis', loadChildren: 'src/app/module/form/check/config/check.config.module#CheckConfigModule' },
  { path: 'form_checkhistory_mis', loadChildren: 'src/app/module/form/check/history/data.check.history.module#DataCheckHistoryModule' },
  // 表单 - 数据导入
  { path: 'form_inputconfig_mis', loadChildren: 'src/app/module/form/input/data.input.config.module#DataInputConfigModule' },
  { path: 'form_inputhistory_mis', loadChildren: 'src/app/module/form/input/data.input.history.module#DataInputHistoryModule' },
  // 门户 - 统一待办
  { path: 'protal_worklist_mis', loadChildren: 'src/app/module/protal/work/portal.worklist.module#PortalWorklistModule' },
  { path: 'protal_work_mis', loadChildren: 'src/app/module/protal/work/portal.work.module#PortalWorkModule' },
  { path: 'protal_test_mis', loadChildren: 'src/app/module/protal/work/portal.test.module#PortalTestModule' },
  // 门户 - 通知公告
  { path: 'protal_notice_mis', loadChildren: 'src/app/module/protal/notice/portal.notice.module#PortalNoticeModule' },
  { path: 'protal_noticeinfo_mis', loadChildren: 'src/app/module/protal/notice/portal.notice.info.module#PortalNoticeInfoModule' },
  // 门户 - 配置
  { path: 'protal_site_mis', loadChildren: 'src/app/module/protal/config/portal.site.module#PortalSiteModule' },
  { path: 'protal_column_mis', loadChildren: 'src/app/module/protal/config/portal.column.module#PortalColumnModule' },
  { path: 'protal_subject_mis', loadChildren: 'src/app/module/protal/config/portal.subject.module#PortalSubjectModule' },
  { path: 'protal_msgclass_mis', loadChildren: 'src/app/module/protal/config/portal.message.class.module#PortalMessageClassModule' },
  { path: 'protal_sensitive_mis', loadChildren: 'src/app/module/protal/config/portal.sensitive.module#PortalSensitiveModule' },
  // 门户 - 内容
  { path: 'protal_link_mis', loadChildren: 'src/app/module/protal/content/portal.link.module#PortalLinkModule' },
  { path: 'protal_msg_mis', loadChildren: 'src/app/module/protal/content/portal.message.board.module#PortalMessageBoardModule' },
  {
    path: 'protal_msginfo_mis',
    loadChildren: 'src/app/module/protal/content/portal.message.board.info.module#PortalMessageBoardInfoModule'
  },
  { path: 'protal_doc_mis', loadChildren: 'src/app/module/protal/content/portal.document.module#PortalDocumentModule' },
  {
    path: 'protal_docinfo_mis',
    loadChildren: 'src/app/module/protal/content/portal.document.info.module#PortalDocumentInfoModule'
  },

  // 差异化
  // tslint:disable-next-line:max-line-length
  { path: 'different_channel_mis', loadChildren: 'src/app/module/data/different/channel/f.conventional.channel.module#ChannelModule' },
  { path: 'different_conventional_mis',
    loadChildren: 'src/app/module/data/different/conventional/f.routine.through.module#FRoutineThroughModule' },
  { path: 'different_luggage_mis', loadChildren: 'src/app/module/data/different/luggage/f.luggage.different.module#FLuggageDifferentModule' },
  { path: 'different_risk_mis', loadChildren: 'src/app/module/data/different/risk/f.tourists.different.module#FTouristsDifferentModule' },
  { path: 'different_certificate_mis', loadChildren: 'src/app/module/data/different/certificate/f.papers.discern.module#FPapersDiscernModule' },
  { path: 'different_face_mis', loadChildren: 'src/app/module/data/different/face/f.facediscern.module#FFacediscernModule' },
  { path: 'different_concentrated_mis',
    loadChildren: 'src/app/module/data/different/concentrated/f.concentrated.through.module#FConcentratedThroughModule' },
  { path: 'different_luggage_channel_mis', loadChildren: 'src/app/module/data/different/luggagechannel/f.luggage.channel.module#FLuggageChannelModel' },


  { path: 'data_channel_infor_mis',
    loadChildren: 'src/app/module/data/different/channel/infor/f.conventional.channel.info.module#FConventionalChannelInfoModule' },
  { path: 'data_conventional_infor_mis',
    loadChildren: 'src/app/module/data/different/conventional/infor/f.routine.through.info.module#FRoutineThroughInfoModule' },
  { path: 'data_luggage_infor_mis',
    loadChildren: 'src/app/module/data/different/luggage/infor/f.luggage.different.info.module#FLuggageDifferentInfoModule' },
  { path: 'data_risk_infor_mis',
    loadChildren: 'src/app/module/data/different/risk/infor/f.tourists.different.info.module#FTouristsDifferentInfoModule' },
  { path: 'data_certificate_infor_mis',
    loadChildren: 'src/app/module/data/different/certificate/infor/f.papers.discern.info.module#FPapersDiscernInfoModule' },
  { path: 'data_face_infor_mis',
    loadChildren: 'src/app/module/data/different/face/infor/f.facediscern.info.module#FFacediscernInfoModule' },
  { path: 'data_concentrated_infor_mis',
    loadChildren: 'src/app/module/data/different/concentrated/infor/f.concentrated.through.info.module#FConcentratedThroughInfoModule' },
  { path: 'data_luggage_channel_infor_mis',
    loadChildren: 'src/app/module/data/different/luggagechannel/infor/f.luggage.channel.info.module#FLuggageChannelInfoModule' },



  // 错误处理
  { path: 'sys_safe_mis', loadChildren: 'src/app/module/error/safe.module#SafeModule' },
  { path: '**', loadChildren: 'src/app/module/error/pagenotfound.module#PageNotFoundModule' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, {
    useHash: true,
    scrollPositionRestoration: 'top',
  })],
  exports: [RouterModule]
})
export class AppRoutingModule { }
